package kr.co.simple.prefs;

import android.content.SharedPreferences;
import android.os.Bundle;

public class MoreSimplePrefs extends SuperSimplePrefs {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		SharedPreferences settingsActivity = getPreferences(MODE_PRIVATE);
		
		if(settingsActivity.contains(PREFERENCE_STRING_NAME) == false){
			
			SharedPreferences.Editor prefEditor = settingsActivity.edit();
			
			prefEditor.putString(PREFERENCE_STRING_NAME, this.getLocalClassName());
			prefEditor.putLong("SomeLong", java.lang.Long.MIN_VALUE);
			prefEditor.commit();
		}
		
		super.onCreate(savedInstanceState);
		
	}

	
	@Override
	Class<?> getTargetClass() {		
		return SimplePrefs.class;
	}

	
}
